<?php
/* @var $this ShiftController */
/* @var $model Shift */

$this->breadcrumbs=array(
	'Management'=>array('/site/management/'),
	'Maintenance'=>array('/site/maintenance/'),	
	'Shifts'=>array('/shift/admin/'),
	$model->name,
);

$this->menu=array(
	//array('label'=>'List Shift', 'url'=>array('index')),
	array('label'=>'Create Shift', 'url'=>array('create')),
	array('label'=>'Update Shift', 'url'=>array('update', 'id'=>$model->idshift)),
	array('label'=>'Delete Shift', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->idshift),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Shifts', 'url'=>array('admin')),
);
?>

<h1>Viewing Shift #<?php echo $model->idshift; ?> : <?php echo $model->name; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'idshift',
		'name',
		'start_time',
		'end_time',
		'description',
		array(
			'name'=>'Enabled',
			'value'=>User::getYesNoValue($model->enabled)),
		array(
			'name'=>'Availability',
			'value'=>User::getYesNoValue($model->availability)),
		array(
			'name'=>'Changes Allowed',
			'value'=>User::getYesNoValue($model->changes_allowed)),		
		array(
			'name'=>'Requires Accounting Approval',
			'value'=>User::getYesNoValue($model->require_acct_approval)),		
		'team_relation.short_name',
	),
)); ?>
